let baseUrl="https://music.aityp.com/"
function http({url,data}){
    return new Promise((resolve,reject)=>{
        wx.request({
            url:baseUrl+url,
            data,
            dataType:"json",
            method:"GET",
            responseType:"text",
            header:{'content-type':'application/json'},
            success: function(res) {
                resolve(res)
            },
            fail: function(err) {
                reject(err)
            }
        })
    })
    
}

module.exports={
    handleData:()=>{
       return http({
            url:'top/artists',
          
        })
    }
}